var _util = _interopRequireDefault(require("../../../utils/util"));

function _interopRequireDefault(e) {
    return e && e.__esModule ? e : {
        default: e
    };
}

Component({
    properties: {
        subscription: Object
    },
    data: {
        isShown: !0
    },
    methods: {
        onClose: function() {
            this.setData({
                isShown: !1
            });
        },
        onFollow: function() {
            var e = this, t = this.data.subscription, o = t.name, n = t.introduce, i = t.url;
            _util.default.savePhotoToAlbum(i).then(function() {
                return e.$route("/pages/view/view?type=official&save=1&name=".concat(encodeURIComponent(o), "&desc=").concat(encodeURIComponent(n), "&value=").concat(encodeURIComponent(i)));
            });
        }
    }
});